#include "all.h"
#include "task.h"
#include <stdio.h>

int fputc(int ch, FILE *f)
{
	while(UART0_FR_R&1<<3);
	UART0_DR_R=(unsigned char)ch;	
	return ch;
}

u8 state = 0;
int main()
{
	state = All_Init();
	while(1)
	{
		Task_Run();
	}
}
